
 import { IRouteComponentProps } from 'umi'
import Headers from "../components/headers/Headers"

import styles from './index.less'
import { GithubOutlined, WifiOutlined } from '@ant-design/icons';
const whiteList = ['/', '/archives', '/knowledge']
export default function Layout({ children, location, route, history, match }: IRouteComponentProps) {
  let body = children;
  if (whiteList.indexOf(location.pathname) !== -1) {
    body = <div className="container content">
      {children}
    </div>
  }
  return <div className={styles.wrapper}>
    
       <Headers/>
    
   
    <main className="container content">
      
      <div className={styles.main}>
        {body}
      </div>
    </main>
    <footer className={styles.dibu}>
        <div>
      
          <span><WifiOutlined /></span>
          <span><GithubOutlined></GithubOutlined></span>
     
        <div>
         <p>Designed by Fantasticit .后台管理</p>
         <p>Copyright c 2021.All Rights Reserved.</p>
         <p>皖ICP备18005737号</p>
        </div>
      </div>
        </footer>
  </div>
}


